package com.ruoyi.grape.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.grape.mapper.GrapeJobMapper;
import com.ruoyi.grape.domain.GrapeJob;
import com.ruoyi.grape.service.IGrapeJobService;

/**
 * 农事管理信息Service业务层处理
 * 
 * @author ld
 * @date 2024-01-22
 */
@Service
public class GrapeJobServiceImpl implements IGrapeJobService 
{
    @Autowired
    private GrapeJobMapper grapeJobMapper;

    /**
     * 查询农事管理信息
     * 
     * @param jobId 农事管理信息主键
     * @return 农事管理信息
     */
    @Override
    public GrapeJob selectGrapeJobByJobId(Long jobId)
    {
        return grapeJobMapper.selectGrapeJobByJobId(jobId);
    }

    /**
     * 查询农事管理信息列表
     * 
     * @param grapeJob 农事管理信息
     * @return 农事管理信息
     */
    @Override
    public List<GrapeJob> selectGrapeJobList(GrapeJob grapeJob)
    {
        return grapeJobMapper.selectGrapeJobList(grapeJob);
    }

    /**
     * 新增农事管理信息
     * 
     * @param grapeJob 农事管理信息
     * @return 结果
     */
    @Override
    public int insertGrapeJob(GrapeJob grapeJob)
    {
        return grapeJobMapper.insertGrapeJob(grapeJob);
    }

    /**
     * 修改农事管理信息
     * 
     * @param grapeJob 农事管理信息
     * @return 结果
     */
    @Override
    public int updateGrapeJob(GrapeJob grapeJob)
    {
        return grapeJobMapper.updateGrapeJob(grapeJob);
    }

    /**
     * 批量删除农事管理信息
     * 
     * @param jobIds 需要删除的农事管理信息主键
     * @return 结果
     */
    @Override
    public int deleteGrapeJobByJobIds(Long[] jobIds)
    {
        return grapeJobMapper.deleteGrapeJobByJobIds(jobIds);
    }

    /**
     * 删除农事管理信息信息
     * 
     * @param jobId 农事管理信息主键
     * @return 结果
     */
    @Override
    public int deleteGrapeJobByJobId(Long jobId)
    {
        return grapeJobMapper.deleteGrapeJobByJobId(jobId);
    }
}
